package entity.common;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 首页轮播图表
 * </p>
 *
 * @author admin
 * @since 2020-02-17
 */
@Data
@TableName("t_banner_info")
public class BannerInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 轮播图名称
     */
    @TableField("image_name")
    private String imageName;

    /**
     * 图片连接
     */
    @TableField("image_url")
    private String imageUrl;

    /**
     * 0:禁用 1:启用
     */
    @TableField("status")
    private Integer status;

    /**
     * 创建日期 yyyy-MM-dd HH:mm:ss
     */
    @TableField("create_time")
    private String createTime;

    /**
     * 更新日期 yyyy-MM-dd HH:mm:ss
     */
    @TableField("update_time")
    private String updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getImageName() {
        return imageName;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "BannerInfo{" +
        "id=" + id +
        ", imageName=" + imageName +
        ", imageUrl=" + imageUrl +
        ", status=" + status +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
